package cn.appsys.service.impl;

import cn.appsys.mapper.appversion.AppversionMapper;
import cn.appsys.pojo.AppInfo;
import cn.appsys.pojo.Appversion;
import cn.appsys.service.AppversionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service
public class AppversionServiceimpl implements AppversionService {
    @Autowired
    private AppversionMapper appversionMapper;

    @Override
    public List<Appversion> getbanben(Integer appId) {
        return appversionMapper.getbanben(appId);
    }

    @Override
    public int addbanben(Appversion appversion) {
        return appversionMapper.addbanben(appversion);
    }

    @Override
    public int modifybanben(Appversion appversion) {
        return appversionMapper.modifybanben(appversion);
    }

    @Override
    public int delete(Integer appid) {
        return appversionMapper.delete(appid);
    }

    @Override
    public int getdelCount(Integer appid) {
        return appversionMapper.getdelCount(appid);
    }

    @Override
    public Appversion getbanbenId(Integer appId) {
        return appversionMapper.getbanbenId(appId);
    }

    @Override
    public int updateFile(Integer vid) {
        return appversionMapper.updateFile(vid);
    }

    @Override
    public List<Appversion> selectAppver(Integer appId) {
        return appversionMapper.selectAppver(appId);
    }
}
